import request from '@/utils/request'

// 查询车辆导入附件列表
export function listVehiclesImportAttach(query) {
  return request({
    url: '/erecord/vehiclesImportAttach/list',
    method: 'get',
    params: query
  })
}

// 查询车辆导入附件详细
export function getVehiclesImportAttach(id) {
  return request({
    url: '/erecord/vehiclesImportAttach/' + id,
    method: 'get'
  })
}

// 新增车辆导入附件
export function addVehiclesImportAttach(data) {
  return request({
    url: '/erecord/vehiclesImportAttach',
    method: 'post',
    data: data
  })
}

// 修改车辆导入附件
export function updateVehiclesImportAttach(data) {
  return request({
    url: '/erecord/vehiclesImportAttach',
    method: 'put',
    data: data
  })
}

// 删除车辆导入附件
export function delVehiclesImportAttach(id) {
  return request({
    url: '/erecord/vehiclesImportAttach/' + id,
    method: 'delete'
  })
}

export function importVehiclesImportAttach(data) {
  return request({
    url: '/erecord/vehiclesImportAttach/importAttach',
    method: 'post',
    data: data
  })
}